package Basics;

import java.util.Scanner;

public class scannertest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        int ge = i % 10;
        int shi = i /10 %10;
        int bai = i / 10 /10  %10;
        System.out.println(ge);
        System.out.println(shi);
        System.out.println(bai);
    }
}